package com.okq.service;

import com.okq.entity.Approval;
import com.okq.util.page.Page;

import java.util.List;

/**
 * 描述 : 审批接口
 * 作者 : zdl
 * 日期 : 2017/6/30 10:17
 */
public interface IApprovalService {

    void saveApproval(Approval approval);

    void deleteApproval(Approval approval);

    void updateApproval(Approval approval);

    Approval getApprovalById(String id);

    Page<Approval> pageByApproval(Page<Approval> page, Approval approval);

    List<Approval> listApprovalByUserId(String userId);

    Approval getApprovalByTypeAndId(Integer type, String relevantId);
}
